	 /**
	  * div 回调显示区域
	  * form 提交的Form表单
	  * */
	 function ajaxFormSubmitxx(div,form){
	 	 $(form).ajaxSubmit(function(responseText) { 
	          $(div).html(responseText);
	     	 $.closePopupLayer();
	         
	      }); 
	 }
/** 选择权限的父类* */
function addOnline(){
	var urlPath = "/control/book/online_addOnlineUI.go";
	$.openPopupLayer( {
		name : "mySecondPopup",
		width : 300,
		height : 300,
		url : urlPath
	});
}

function  submitForOnline(){
	if($.trim($("#onlineName").val()).length<1)
	{
		alert("用户名不能为空");
		return false;
	}else if($.trim($("#userNumber").val()).length<1){
		alert("服务号不能为空");
		return false;
	}
	ajaxFormSubmitxx("#right_content_sell","#add_online_form");
}

function deleteOnline(onlineId){
	$.ajax({
		  url: "/control/book/online_deleteOnline.go",
		  data: "online.id="+onlineId,
		  cache: false,
		  success: function(html){
		    $("#right_content_sell").html(html);
		  }
		});
}